package com.jingogo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 贵金属交易平台后端系统启动类
 * 
 * @author jingogo
 * @since 2024-01-01
 */
@SpringBootApplication
@MapperScan("com.jingogo.mapper")
@EnableTransactionManagement
@EnableAsync
@EnableScheduling
public class JingogoApplication {

    public static void main(String[] args) {
        SpringApplication.run(JingogoApplication.class, args);
        System.out.println("贵金属交易平台后端系统启动成功！");
        System.out.println("API文档地址: http://localhost:8080/api/doc.html");
        System.out.println("数据库监控地址: http://localhost:8080/api/druid");
    }
} 